using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class GameOverText : MonoBehaviour
{
    public ScoreManager O;
    public Text Over;
    void Start()//初始化文本为空
    {
        Over.text="";
    }
    void Update()
    {
        if (O.GameOver) Over.text="Game Over!\nYour Score Is:"+O.S;//如果游戏结束，则显示分数
    }
}
